package com.demo.mantis.web.servlet;

import javax.servlet.ServletContextEvent;
import javax.servlet.ServletContextListener;
import javax.servlet.annotation.WebListener;

//@WebListener
public class HelloListener implements ServletContextListener {

	@Override
	public void contextInitialized(ServletContextEvent sce) {
		System.out.println("The web application initialized: " + 
						   sce.getServletContext().getServletContextName());
	}

	@Override
	public void contextDestroyed(ServletContextEvent sce) {
		System.out.println("The web application destroyed: " + 
							sce.getServletContext().getServletContextName());

	}
}
